Release 10.1A: OpenEdge Development:
Web Services


Using the Analyzer output

Given the options, the Analyzer produces five types of hyperlinked HTML documents in your current working directory as described in the following sections. All of these documents are hyperlinked from a starting index.html file generated in the target-directory:

Index document

This document is the starting index.html file that the Analyzer generates to describe the WSDL file. Figure 8–1 shows an example of this document.

Figure 8–1: WSDL Analyzer index document for multiple services

If the WSDL file defines more than one service, as in this example, the index document becomes a service index document that lists all defined services as hyperlinks, each to its own service document containing sections that describe the service.

This list appears after all other sections that describe the WSDL file, as shown in Table 8–1.

Table 8–1: WSDL Analyzer doc—Index document for multiple services
Section heading
Description

WSDL

The document heading followed by comments in any WSDL <documentation> elements that describe the entire WSDL file.

Location

The URL of the WSDL file used to generate this documentation. This is always a complete path name (absolute path) to the file.

Target namespace

The target namespace of the Web service.

Services

A hyperlinked listing of all the services defined for the Web service, including comments in any WSDL <documentation> elements about these services.

This index document also contains a hyperlink to an operation index document that contains an alphabetical list of all operations from all port types in all services (see the "Operation index document" section).

If the WSDL file defines only one service, the index document redirects the browser to that single service document, as shown in Table 8–4.

Operation index document

The operation index document contains a hyperlinked alphabetical list of all operations from all port types in all services defined in the WSDL file. Figure 8–2 shows an example of this document.

Figure 8–2: WSDL Analyzer operation index document

The list is in the form of a table with columns describing the port type and service information for each operation, as shown in Table 8–2.

Table 8–2: WSDL Analyzer doc—Operation index document list
Table column
Description

Operation

A hyperlinked operation name that links to the operation detail in the port type document.

Documentation

Any comments provided in WSDL <documentation> elements that describe the operation.

Port type

A hyperlinked port type name that links to the top of the port type document.

Service

A hyperlinked service name that links to the service document.

The operation index document also contains a hyperlink to the service index (see the "Index document" section) and data types document (see the "Data types document" section).

Service document

The service document is an HTML document that provides an overview of a Web service interface. Figure 8–3 shows an example of a service document for one of the services described in a WSDL with multiple services.

Figure 8–3: WSDL Analyzer service document for one of multiple services

Table 8–3 lists and describes the sections of a service document if the WSDL contains multiple services, as in Figure 8–3.

Table 8–3: WSDL Analyzer doc—Service document (from multiple services)
Section heading
Description

Service-name service

The name of the service (Service-name) followed by any comments included in WSDL <documentation> elements about there service.

Port types (persistent procedures)

A hyperlinked listing of all the port types defined in the Web service, including comments in any WSDL <documentation> elements about them.

Data types

A hyperlinked alphabetical listing of all the complex types defined for the Web service, including comments in any WSDL <documentation> elements as defined for each data type.

A service document for one of multiple services also contains a hyperlink to the service index (see the "Index document" section) and data types document (see the "Data types document" section).

Figure 8–4 shows an example of a service document for a WSDL containing only one service.

Figure 8–4: WSDL Analyzer service document for a single service only

Table 8–4 lists and describes the sections of the service document if the WSDL contains only a single service, as in Figure 8–4.

Table 8–4: WSDL Analyzer doc—Service document (from one service)
Section heading
Description

WSDL

The document heading followed by comments in any WSDL <documentation> elements that describe the entire WSDL file.

Location

The URL of the WSDL file used to generate this documentation. This is always a complete path name (absolute path) to the file.

Target namespace

The target namespace of the Web service.

Service-name service

The name of the service (Service-name) followed by any comments included in WSDL <documentation> elements about there service.

Port types (persistent procedures)

A hyperlinked listing of all the port types defined in the Web service, including comments in any WSDL <documentation> elements about them.

Data types

A hyperlinked alphabetical listing of all the complex types defined for the Web service, including comments in any WSDL <documentation> elements as defined for each data type.

This single service document also contains a hyperlink to an operation index document that contains an alphabetical list of all operations from all port types in the service (see the "Operation index document" section).

Port type document

For each port type defined in the WSDL file, the Analyzer generates a separate HTML port type document that contains detailed information on how to work with that port type. Figure 8–5 shows an example of the beginning of a port type document.

Figure 8–5: WSDL Analyzer port type document (up to the Summary)

Table 8–5 lists and describes the sections that the beginning of a port type document contains.

Table 8–5: WSDL Analyzer doc—Port type document beginning sections
Section heading
Description
Port type (persistent procedure)
The document heading.
Port-type-name
The defined name of the port type followed by comments in any WSDL <documentation> elements that describe the entire port type.
Summary
Basic connection (binding) information and a list of the operations defined by the port type, including comments in any WSDL <documentation> elements on each operation.

A port type document for a WSDL with a single service also contains a hyperlink to the single service document ( "Service document" section), data types document ( "Data types document" section), and operation index document ( "Operation index document" section). A port type document for a WSDL with multiple services adds a link to the service index ( "Index document" section), as shown in Table 8–5.

Figure 8–6 shows an example of the connection parameters from the Connection details section of a port type document, as described in Table 8–6.

Figure 8–6: WSDL Analyzer port type document (connection parameters)

Figure 8–7 shows an example of service and port descriptions from the Connection details section of a port type document.

Figure 8–7: WSDL Analyzer port type document (services and ports)

The WSDL Analyzer can also list the WSDL bindings that support the port type. For more information on how the Analyzer describes services, ports, and bindings, see Table 8–6.

Figure 8–8 shows a connection code example from the Connection details section of a port type document, as described in Table 8–6.

Figure 8–8: WSDL Analyzer port type document (example connection code)

Table 8–6 lists and describes the Connection details section of a port type document.

Table 8–6: WSDL Analyzer doc—Port type document connection details
Section heading
Description
Connection details
Provides information on how to connect to the Web service to use this port type, including the following sections:
  • Connection parameters — Progress 4GL syntax for all of the Web service-related parameters that can be included in the connection parameters string passed to the Progress 4GL CONNECT( ) method, and a Progress 4GL example of how they might be used. Some of the same startup options used for execution of the WSDL Analyzer also appear in this section, such as those used to specify HTTPS and proxy server connections.
  • -Service and -Port descriptions — A table listing the name of each service and the names of ports for each service that support this port type. For each service and port name, the table also includes comments in any WSDL <documentation> elements defined for each service and port. So, for example, if the port type is supported for different applications and in different locations, you might well have a corresponding choice of services and ports to make the connection.
  • Example — Provides a real code example that illustrates how you might connect and set up the Web service to access the operations of the port type.
  • Binding descriptions — If you specify the -b command-line option, this section appears in the document. It shows a table listing the name of each binding that supports this port type. For each binding, the table also includes comments in any WSDL <documentation> elements defined for each binding.

Figure 8–9 shows an example of how the Analyzer starts describing a Web service operation in the “Operation (internal procedure) detail” section of a port type document.

Figure 8–9: WSDL Analyzer port type document (operation detail start)

Figure 8–10 shows an example of how the Analyzer finishes describing a Web service operation in the “Operation (internal procedure) detail” section of a port type document, describing parameters, return values, headers, and faults associated with the operation as described in Table 8–7.

Figure 8–10: WSDL Analyzer port type document (operation detail finish)

Table 8–7 lists and describes the “Operation (internal procedure) detail” section of a port type document.

Table 8–7: WSDL Analyzer doc—Port type document operation detail
Section heading
Description
Operation (internal procedure) detail
A series of subsections describing each Web service operation defined for the port type mapped as an internal procedure (and user-defined function, if supported), including:
  • The operation name.
  • Comments in any WSDL <documentation> elements.
  • Progress 4GL procedure prototypes (and function prototypes, if also supported).
  • Progress 4GL example.
  • Descriptions of parameters and any return value (for a user-defined function mapping), including SOAP examples for complex types as appropriate for different service and port combinations.
  • Any SOAP request/response headers and SOAP faults as appropriate for different service and port combinations.

The WSDL Analyzer maps all Web service operations from a port type to a 4GL internal procedure prototype. This allows all Web service operations to be invoked either synchronously or asynchronously as you require. For some Web service operations, the Analyzer also indicates a mapping to a 4GL user-defined function prototype. For these dual-mapping operations:

Figure 8–9 and Figure 8–10 show most of an example description for a dual-mapping Web service operation in the “Operation (internal procedure) detail” section of a port type document.

The port type document also describes how the Analyzer maps any complex data to Progress 4GL temp-tables or ProDataSets. For more information, see the "Analyzing complex data" section.

Data types document

For all the complex types defined in the WSDL file, the Analyzer generates a single HTML data types document that contains a summary and detailed information on each complex type, whether or not they are actually used in the Web service. Figure 8–11 shows an example of the data type summary list that begins this document, and Figure 8–12 shows an example data type detail in this document.

Figure 8–11: WSDL Analyzer data types document (summary list)

Figure 8–12: WSDL Analyzer data types document (data type detail)

Table 8–8 lists and describes the sections that the data types document contains.

Note: This document does not describe standard XML Schema types. For information on how the Analyzer maps XML Schema types to Progress 4GL data types, see the "Mapping XML Schema data types to Progress 4GL data types" section. It also does not indicate what complex data types are mapped to temp-tables or ProDataSets. When the Analyzer identifies a complex type that maps to a temp-table or ProDataSet, it documents the 4GL object and an example of its SOAP representation for the appropriate parameter, SOAP header entry, or SOAP fault detail in the port type document (see the "Port type document" section). For more information on how the Analyzer maps and documents temp-table and ProDataSet representations of complex types, see the "Analyzing complex data" section.

Table 8–8: WSDL Analyzer doc—Data types document
Section heading
Description

Data types

The document heading followed by comments in any WSDL <documentation> elements that describe the entire types section.

Datatype summary

A hyperlinked alphabetical listing of all the complex types defined for the Web service, including comments in any WSDL <documentation> elements as defined for each data type.

Datatype detail

A series of subsections, one for each complex type defined for the Web service, listed in alphabetical order, and each one including comments in any WSDL <documentation> elements defined for the complex type, the XML <schema> element that defines the type, and an example of a SOAP instance.

A data types document for a WSDL also contains a hyperlink to the current service document (see the "Service document" section) and to the operation index document (see the "Operation index document" section). It also provides a hyperlink to the beginning (top) of the document from the detail for any data type entry.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095